<?php
class trainitem extends baseentity
{
    public function __construct($args=array())
    {
        parent::__construct($args);
    }

    const NO = 0;
    const YES = 1;

    const DISTANCES = 1;
    const TIMES = 2;

    protected $name;
    protected $type;
    protected $status;
    protected $ratio;

    //次数的好说 = 1 point，距离的要换算成 100米相当于多少个。 
    public function getfields()
    {
        return get_class_vars(__CLASS__);
    }

    public function create($name)
    {
        $trainitem = new self;
        $trainitem->name = $name;
        $trainitem->status= self::NO;
    } 
}
